# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Eduardo Romero <eduardo@archlinux.org>
# Contributor: Jason Chu <jason@archlinux.org>

pkgname=gphoto2
pkgver=2.5.28
pkgrel=1
pkgdesc="A digital camera download and access program."
arch=(loong64 x86_64)
url="http://www.gphoto.org"
license=('GPL' 'LGPL')
depends=('libgphoto2' 'popt')
source=(https://downloads.sourceforge.net/gphoto/${pkgname}-${pkgver}.tar.bz2{,.asc})
sha256sums=('2a648dcdf12da19e208255df4ebed3e7d2a02f905be4165f2443c984cf887375'
            'SKIP')
validpgpkeys=('7C4AFD61D8AAE7570796A5172209D6902F969C95')
validpgpkeys+=('') # "Marcus Meißner (german spelling) <meissner@suse.de>"

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="${pkgdir}" install
}
